﻿using AutoMapper;
using Castle.Windsor;
using GroceryList.Front.Web.Installers;
using Xunit;

namespace GroceryList.Test
{
    public class AutomapperInstallerTest
    {
        private readonly IWindsorContainer _container;

        public AutomapperInstallerTest()
        {
            _container =
                new WindsorContainer().
                    Install(new AutomapperInstaller());
        }

        [Fact]
        public void CanCreateAMappingEngineObjectByUsingAutomapperInstaller()
        {
            var mapper = _container.Resolve<IMappingEngine>();
            Assert.NotNull(mapper);            
        }
    }
}
